package learning.xml.jaxb;


import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlRootElement(name = "Song")
// If you want you can define the order in which the fields are written
// Optional
@XmlType(propOrder = { "name", "key", "isMinor", "meter", "chordRoots",
		"chordQualities", "onsets", "durations", "melodyPitch", "melodyOnset" })
public class Song {

	private String name;
	private int key;
	private boolean isMinor;
	private int meter;
	private int[] chordRoots;
	private int[] chordQualities;
	private int[] onsets;
	private int[] durations;
	private int[][] melodyPitch;
	private int[][] melodyOnset;

	@XmlElement(name = "songName")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int[] getChordRoots() {
		return chordRoots;
	}

	public int[] getChordQualities() {
		return chordQualities;
	}

	public int[] getOnsets() {
		return onsets;
	}

	public int[] getDurations() {
		return durations;
	}
	
	public int[][] getMelodyOnset() {
		return melodyOnset;
	}

	public int[][] getMelodyPitch() {
		return melodyPitch;
	}

	public void setMelodyOnset(int[][] melodyOnset) {
		this.melodyOnset = melodyOnset;
	}

	public void setMelodyPitch(int[][] melodyPitch) {
		this.melodyPitch = melodyPitch;
	}

	
	public void setChordRoots(int[] chordRoots) {
		this.chordRoots = chordRoots;
	}

	public void setChordQualities(int[] chordQualities) {
		this.chordQualities = chordQualities;
	}

	public void setOnsets(int[] onsets) {
		this.onsets = onsets;
	}

	public void setDurations(int[] durations) {
		this.durations = durations;
	}

	public int getKey() {
		return key;
	}

	public void setKey(int key) {
		this.key = key;
	}

	public int getMeter() {
		return meter;
	}

	public void setMeter(int meter) {
		this.meter = meter;
	}

	public boolean getIsMinor() {
		return isMinor;
	}

	public void setIsMinor(boolean isMinor) {
		this.isMinor = isMinor;
	}
}
